package com.atguigu.spzx.user.service.impl;

import com.atguigu.spzx.model.entity.base.Region;
import com.atguigu.spzx.user.mapper.RegionMapper;
import com.atguigu.spzx.user.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: RegionServiceImpl
 * @Package: com.atguigu.spzx.user.service.impl
 * @Description
 * @Author 孤妤
 * @Date: 2023/12/22 11:51
 */
@Service
public class RegionServiceImpl implements RegionService {
    @Autowired
    private RegionMapper regionMapper;
    @Override
    public List<Region> findRegionByParentCode(String parentCode) {
        return regionMapper.selectRegionByParentCode(parentCode);
    }
}
